package com.xxxx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *公告的实体类
 */
@ApiModel(value="Notice对象", description="")
@TableName("t_notice")
@Data
public class Notice  {

    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    // 标题
    @NotBlank(message = "title is not null")
    private String title;
    //文章内容
    @NotBlank(message = "content is not null")
    private String content;
    //发布人
    private String create_by;
    // 紧急类型
    private Integer type;


    private Date create_time;

    private Date update_time;



}
